package com.hjsmallfly.syllabus.room.record;

import com.hjsmallfly.syllabus.bean.SemesterData;

public class LessonRecord {

    private long cid;

    private String time;

    private String name;

    private int year;

    private int season;

    private String teather;

    private String remark;

    private String location;

    private int type;

    public long getCid() {
        return cid;
    }

    public void setCid(long cid) {
        this.cid = cid;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getSeason() {
        return season;
    }

    public void setSeason(int season) {
        this.season = season;
    }

    public String getTeather() {
        return teather;
    }

    public void setTeather(String teather) {
        this.teather = teather;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public void setCreditType() {
        this.type = TYPE_CREDIT;
    }

    public SemesterData getSemester() {
        return new SemesterData(year, season);
    }

    public void setSemester(SemesterData semester) {
        this.year = semester.getYear();
        this.season = semester.getSemester();
    }

    public static final int TYPE_CREDIT = 0;
}
